<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="search-header">
        <span>线上热门搜索</span>
        <el-dropdown>
          <span class="el-dropdown-link"><i class="el-icon-arrow-down el-icon-more"/></span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item disabled>双皮奶</el-dropdown-item>
            <el-dropdown-item divided>蚵仔煎</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
      <div>
        <el-row :gutter="10">
          <el-col :span="12"><LineCharts/></el-col>
          <el-col :span="12"><LineCharts/></el-col>
        </el-row>
      </div>
      <div class="search-table">
        <el-table  style="width: 100%" border >
          <el-table-column type="index" prop="prop" label="排名" width="80" ></el-table-column>
          <el-table-column prop="prop" label="搜索关键字" ></el-table-column>
          <el-table-column prop="prop" label="用户数" sortable></el-table-column>
          <el-table-column prop="prop" label="周涨幅" sortable></el-table-column>
        </el-table>
      </div>
      <div class="pagination">
        <el-pagination
          background
          layout="prev, pager, next"
          :total="1000">
        </el-pagination>
      </div>
    </el-card>
  </div>
</template>

<script>
import LineCharts from './LineCharts'

export default {
  name: 'Search',
  components: {
    LineCharts
  },
  data() {
    return {
      data: ''
    }
  }
}
</script>

<style scoped>
.search-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.search-header span {
  margin-bottom: 5px;
}
.el-dropdown-link {
  cursor: pointer;
  color: #409EFF;
}
.el-icon-arrow-down {
  font-size: 12px;
}
.search-table{
  margin: 10px;
}
.pagination{
  float: right;
}
</style>
